new Vue({
    el: '#app',
    data:{
        games:[]
    },
    created() {
        //加载配置json文件
        axios(`./config.json`).then(res => {
            this.games = res.data.games;
            this.games.forEach((g,index)=>{
                g.url = './gamerules.html?gameid='+g.id;
            })
        });
    },         
});